package oving8;

import java.awt.Shape;

public class MovingObject extends MoveableObject {
	
	int dx;
	int dy;
	public MovingObject(Shape shape) {
		super(shape);
		dx=0;
		dy=0;
		
	}
	public void accelerate(int dx, int dy){
		this.dx+=dx;
		this.dy+=dy;
	}
	public void move(){
		this.move(dx,dy );
	}
	

}
